remove attribute in jquery

98

remove attribute in jquery -

$("button").click(() => {
  $("div").removeAttr("id"); // <div id='12' class='nice'></div> --> <div class='nice'></div>
});

Comments

Submit
0 Comments